#
# @lc app=leetcode.cn id=1893 lang=python
#
# [1893] 检查是否区域内所有整数都被覆盖
#

# @lc code=start
class Solution(object):
    def isCovered(self, ranges, left, right):
        """
        :type ranges: List[List[int]]
        :type left: int
        :type right: int
        :rtype: bool
        """
        result=True
        for i in range(left,right+1):
            isObtain=False
            for l, r in ranges:
                if l<=i  and r>=i:
                    isObtain=True
                    break
            if not isObtain:
                result=False
            else:continue
        return result
# @lc code=end

